// lib/core/user_info.dart
class UserInfo {
  UserInfo._();
  static final _instance = UserInfo._();
  factory UserInfo() => _instance;

  String? token;
  String? userId;
  String? nickname;

  bool get isLogin => token?.isNotEmpty == true;

  void clear() {
    token = null;
    userId = null;
    nickname = null;
  }
}
